//
//  SHDefintionConst.h
//  Netease
//
//  Created by 王方伟 on 2017/8/17.
//  Copyright © 2017年 wfw. All rights reserved.
//

#import <UIKit/UIKit.h>
/** 点击TabBar时的通知 */
UIKIT_EXTERN NSString *const SelectedTabBarItemNotification;


/** 播放器第一帧视频显示时的消息通知 */
UIKIT_EXTERN NSString *const NTESLivePlayerFirstVideoDisplayedNotification;
/** 播放器第一帧音频播放时的消息通知 */
UIKIT_EXTERN NSString *const NTESLivePlayerFirstAudioDisplayedNotification;
/** 播放器准备播放通知 */
UIKIT_EXTERN NSString *const NTESLivePlayerDidPreparedToPlayNotification;
/** 播放器加载状态发生改变时的消息通知 */
UIKIT_EXTERN NSString *const NTESLivePlayerLoadStateChangedNotification;
/** 播放器播放完成或播放发生错误时的消息通知 */
UIKIT_EXTERN NSString *const NTESLivePlayerPlaybackFinishedNotification;
/** 播放器播放状态发生改变时的消息通知 */
UIKIT_EXTERN NSString *const NTESLivePlayerPlaybackStateChangedNotification;

UIKIT_EXTERN NSString *const NTESCMType;
UIKIT_EXTERN NSString *const NTESCMData;
UIKIT_EXTERN NSString *const NTESCMPresentType;
UIKIT_EXTERN NSString *const NTESCMPresentCount;
UIKIT_EXTERN NSString *const NTESCMConnectMicUid;
UIKIT_EXTERN NSString *const NTESCMConnectMicNick;
UIKIT_EXTERN NSString *const NTESCMConnectMicAvatar;
UIKIT_EXTERN NSString *const NTESCMCallStyle;
UIKIT_EXTERN NSString *const NTESCMMeetingName;
UIKIT_EXTERN NSString *const NTESCMOrientation;


typedef NS_ENUM(NSInteger, NTESLiveRole){
    NTESLiveRoleAnchor,                 //主播
    NTESLiveRoleAudience,               //观众
};

typedef NS_ENUM(NSInteger, NTESLiveType){
    NTESLiveTypeInvalid = -1,  //直播未开始
    NTESLiveTypeAudio = 1,     //音频直播
    NTESLiveTypeVideo = 2      //视频直播
};

typedef NS_ENUM(NSInteger, NTESLiveQuality){
    NTESLiveQualityHigh,      //高清
    NTESLiveQualityNormal,    //流畅
};

typedef NS_ENUM(NSInteger, NTESLiveMicState){
    NTESLiveMicStateNone,       //初始状态
    NTESLiveMicStateWaiting,    //队列等待
    NTESLiveMicStateConnecting, //连接中
    NTESLiveMicStateConnected,  //已连接
};

typedef NS_ENUM(NSInteger,NTESCustomAttachType){
    NTESCustomAttachTypePresent,
    NTESCustomAttachTypeLike,
    NTESCustomAttachTypeConnectedMic,
    NTESCustomAttachTypeDisconnectedMic,
};

typedef NS_ENUM(NSInteger, NTESLiveCustomNotificationType){
    NTESLiveCustomNotificationTypePushMic = 1,    //加入连麦队列通知
    NTESLiveCustomNotificationTypePopMic  = 2,    //退出连麦队列通知
    NTESLiveCustomNotificationTypeAgreeConnectMic  = 3,  //同意连麦
    NTESLiveCustomNotificationTypeForceDisconnect  = 4,  //主播强制让连麦者断开
    NTESLiveCustomNotificationTypeRejectAgree      = 5,  //拒绝主播的同意连麦
};

typedef NS_ENUM(NSInteger, NTESLiveActionType){
    
    NTESLiveActionTypeLive,     //点直播按钮
    NTESLiveActionTypeLike,     //点赞
    NTESLiveActionTypePresent,  //礼物
    NTESLiveActionTypeShare,    //分享
    NTESLiveActionTypeCamera,   //旋转摄像头
    NTESLiveActionTypeQuality,  //分辨率
    NTESLiveActionTypeInteract, //互动
    NTESLiveActionTypeBeautify, //美颜
    NTESLiveActionTypeMixAudio,  //混音
    NTESLiveActionTypeSnapshot,  //截图
    NTESLiveActionTypeChat,      //聊天
    NTESLiveActionTypeMoveUp,    //点上移按钮
    NTESLiveActionTypeMirror,    //镜像
    NTESLiveActionTypeWaterMark, //水印
    NTESLiveActionTypeFlash,   //闪光灯
    NTESLiveActionTypeZoom,      //焦距调节
    NTESLiveActionTypeFocus      //开启手动对焦
    
};

//应用服务器错误码
typedef NS_ENUM(NSInteger, NTESRemoteErrorCode) {
    NTESRemoteErrorCodeOverFlow  = 419,   //数量超过上限
};

